package com.ymatou.iapi.sellerproduct.service;


import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.json.JSONArray;

import com.ymttest.business.YmatouAutoTestCall;
import com.ymttest.utils.EnvSetup;

public class ModifyProductPicCall extends YmatouAutoTestCall {

	private static String opurl ="/api/AppProduct/ModifyProductPic";

	public ModifyProductPicCall() {
		super(EnvSetup.getSystemUrl("sellerproduct_iapi"),opurl,"POST","JSON");
	}
	
	public void addDefHeader() {
		client.addHeader("Content-Type", "application/json");
	}
	public static void main(String[] args) {
		List <String> aa = new ArrayList<String>();
		aa.add("d");
		aa.add("c");
		JSONArray cc = new JSONArray(aa);
		
		Map<String, Object> updateMap = new HashMap<String,Object>();
		updateMap.put("ProductImgUrls", cc);
		ModifyProductPicCall aCall = new ModifyProductPicCall();
		aCall.callAndGetReturnData(updateMap);
	}

}
